/* General Styles */
body {
    font-family: 'Vazir', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header */
  .header {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 20px 0;
    text-align: center;
  }
  
  .header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #ff6f61;
  }
  
  /* Posts Section */
  .posts-section {
    padding: 60px 0;
  }
  
  .posts-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
  }
  
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .post-content {
    padding: 20px;
  }
  
  .post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
  }
  
  .post-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
  }
  
  .post-excerpt {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
  }
  
  .read-more {
    display: inline-block;
    background: #6a11cb;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .read-more:hover {
    background: #2575fc;
    transform: translateY(-2px);
  }
  
  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
  }
  
  .page-link {
    padding: 10px 15px;
    background: #6a11cb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .page-link:hover {
    background: #2575fc;
    transform: translateY(-2px);
  }
  
  .page-link.active {
    background: #2575fc;
  }
  
  /* Footer */
  .footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
  }
  
  .footer a {
    color: #ff6f61;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer a:hover {
    color: #ff3b2f;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .posts-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  
    .header h1 {
      font-size: 2rem;
    }
  
    .nav-links {
      flex-direction: column;
      gap: 10px;
    }
  }




  /* Cool Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    z-index: 1000;
  }
  
  .back-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }
  
  .back-button:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  
  .back-button:hover i {
    transform: translateX(-5px);
  }
  
  .back-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }